<template>
	<view class="serve_item" @click="toDetail(goodsItem.goods_id)" :data-id="goodsItem.goods_id">
		<view class="serve_l">
			<image :src="goodsItem.goods_img" mode="widthFix"></image>
		</view>
		<view class="serve_r">
			<view class="sr_t">
				<view class="sr_title">
					{{goodsItem.goods_name}}
				</view>
			</view>
			<view class="sr_b">
				<text class="cred">
					￥
					<text class="money_now">{{goodsItem.shop_price}}</text>
				</text>
				<!-- <text class="money_ago">￥{{goodsItem.market_price}}</text> -->
			
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		name:"serveType",
		props:{
			goodsItem:{
				type:Object,
				default:{}
			}
		},
		data(){
			return{
				
			}
		},
		methods:{
			toDetail(e){
				uni.navigateTo({
					url:'/package/info/index?goods_id='+e
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	@import 'goodsItem.scss';
</style>